home *** CD-ROM | disk | FTP | other *** search
- Path: wndrwrks.demon.co.uk!andy
- From: Andy Armstrong <andy@wndrwrks.demon.co.uk>
- Newsgroups: comp.lang.c++
- Subject: Re: Blinking mouse
- Date: Fri, 5 Jan 1996 12:25:41 +0000
- Organization: WonderWorks
- Distribution: world
- Message-ID: <eky8XAAFjR7wEwQs@wndrwrks.demon.co.uk>
- References: <51231203347$71C7@lasernet.com>
- NNTP-Posting-Host: wndrwrks.demon.co.uk
- X-NNTP-Posting-Host: wndrwrks.demon.co.uk
- MIME-Version: 1.0
- X-Newsreader: Turnpike Version 1.10 <qBJsdVzqmTD$H3HpwSrFWKs0Aw>
-
- In article <51231203347$71C7@lasernet.com>, Jonathan Wooldridge
- <jonathan_wooldridge@lasernet.com> writes
- >So here's the situation: DOS GUI, 640x480x16 vga (Borland 3.1), ok?
- >
- >mouse.Hide(); // Hide mouse routine (basically a mouse driver call)
- >UpdateClock(); // Redraw graphic
- >mouse.Show(); // Same deal as mouse.Hide()
- >
- >Works well and good, but the mouse cursor flickers painfully. I've tried
- > to update the graphics without first hiding the mouse cursor,
- > but I get 'smeared' cursor ghosts, and other wierd artifacts on the
- > screen. A definite nono.
- >
- >Is there a way to avoid flicker on the mouse cursor, when updating graphics?
-
- Make sure you only hide the cursor if it overlaps the thing being
- painted and/or wait for screen vertical retrace until you update.
-
- Not exactly a C++ question though is it?
-
- Andy Armstrong WonderWorks
- Phone/fax: 01665 602868 Mobile: 0860 922719
-